home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / bench / x.txt / 000097_fdc@watsun.cc.columbia.edu_Mon Oct 29 18:26:56 EST 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  57 lines

  1. Article: 12914 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: auto-ftp login
  6. Date: 29 Oct 2001 23:27:34 GMT
  7. Organization: Columbia University
  8. Lines: 40
  9. Message-ID: <9rkol6$6v3$1@newsmaster.cc.columbia.edu>
  10. References: <9rk8ql$c6h$1@samba.rahul.net> <9rkcqn$cuf$1@samba.rahul.net> <9rkfpe$eg$1@newsmaster.cc.columbia.edu> <9rkml6$eok$1@samba.rahul.net>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1004398054 7139 128.59.39.2 (29 Oct 2001 23:27:34 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 29 Oct 2001 23:27:34 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12914
  16.  
  17. In article <9rkml6$eok$1@samba.rahul.net>,  <dold@46.usenet.us.com> wrote:
  18. : Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  19. : : In article <9rkcqn$cuf$1@samba.rahul.net>,  <dold@46.usenet.us.com> wrote:
  20. : : : ...
  21. : : : That didn't seem to work very well:
  22. : : : [C:\K95\] K-95> ftp
  23. : : : ?ftp what? "help ftp" for hints
  24. : : : [C:\K95\] K-95>
  25. : : : 
  26. : : The new FTP client is explained here:
  27. : :   http://www.columbia.edu/kermit/ftpclient.html
  28. : : and in complete detail here:
  29. : :   http://www.columbia.edu/kermit/ckermit3.html#x3
  30. : I read those.  That leaves me without the earlier method of being able to
  31. : start an ftp session using the current hostname as a default.
  32. : Jeff indicates that it is available.
  33. : I can do a macro to strip off the :telnet from \v(line) and use that, but
  34. : it used to be possible to invoke ftp without specifying a hostname.
  35. Maybe we can make FTP OPEN default to the current SET HOST hostname.
  36.  
  37. In the meantime, you can do it with something like this:
  38.  
  39.   define myftp {
  40.       if defined \%1 {
  41.           if defined \%2 {
  42.               ftp open \%1 /user:\%2
  43.           } else {
  44.               ftp open \%1 /user:\v(user)
  45.           }
  46.       } else {
  47.           if not local end 1 Sorry - no current connection.
  48.           if not \findex(telnet,\v(line)) end 1 No active Telnet connection.
  49.           ftp open \fstripx(\v(line),:)
  50.       }
  51.   }
  52.  
  53. - Frank
  54.